{include file="public/_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title">
                        <h5>用户信息</h5>
                    </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form action="{:url('admin/Meeting/authEdit')}" method="post" class="form-horizontal" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{$info.id}">
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">角色名称：</label>
                                <div class="col-sm-8">
                                    <input name="title" class="form-control" type="text" value="{$info.title}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">权限：</label>
                                <div class="col-sm-8">
                                    {volist name="auth" id="vo"}
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">{$vo.title}</label>
                                            <div class="col-sm-10">
                                                {volist name="vo.child_menu" id="vo1"}
                                                <label class="checkbox-inline i-checks">
                                                    <div class="icheckbox_square-green" style="position: relative;">
                                                        <input name="auth[]" value="{$vo1.id}" style="position: absolute; opacity: 0;" type="checkbox" {if condition="in_array($vo1['id'],$info['auth'])"}checked{/if} >
                                                        <ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;">
                                                        </ins>
                                                    </div>
                                                    {$vo1.title}
                                                </label>
                                                {/volist}
                                            </div>
                                        </div>
                                    {/volist}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {include file="public/_footer" /}
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC_ADMIN__utf8-php/ueditor.all.min.js"></script>
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	//window.location.reload();	// 刷新页面
            })
		});
	</script>

</body>
</html>
